<?php
namespace Cmf\Models;
/**
 * 角色管理模型
 */
class Role extends \Phalcon\Mvc\Model
{
    public $title;
    public $description;
    public $status;
    public $access;

    public function initialize()
    {
        $this->setSource(TABLE_PREFIX."role");
        $this->hasMany('id','Cmf\Models\Permission','role_id',array(
            'alias'=>'permissions',
        ));
    }
}
